package club.looli.haoke.houseResources.service;

import club.looli.haoke.common.vo.PageInfo;
import club.looli.haoke.houseResources.entity.HouseResources;

/**
 * <p>
 * Created by looli on 2020/7/7
 * </p>
 *
 * <p>
 *
 * </p>
 *
 * @author looli
 * @since 2020/7/7
 */
public interface HouseResourcesService {
    /**
     * 保存房源信息
     * @param houseResources
     * @return -1:输入的参数不符合要求；0：数据插入数据库失败；1：成功
     */
    int saveHouseResources(HouseResources houseResources);

    /**
     * 分页显示房源列表
     * @param page
     * @param pageSize
     * @param queryCondition
     * @return
     */
    PageInfo<HouseResources> queryHouseResourcesList(int page, int pageSize, HouseResources queryCondition);

    /**
     * 根据id查询房源信息
     * @param id 房源id
     * @return 房源信息
     */
    HouseResources queryHouseResourcesById(Long id);
}
